package com.aabte.spring.xml;

import com.aabte.spring.beans.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Daniel
 */
public class MainTest {

    public static void main(String[] args) {

        ApplicationContext ioc = new ClassPathXmlApplicationContext("classpath:/beans.xml");

        Person person = (Person)ioc.getBean("person");

        System.out.println("person = " + person);
    }

}
